<template>
  <div class="home">
    <h1>首页</h1>
    <button @click="showData">接受参数</button>
  </div>
</template>

<script>

export default {
  name: 'HomeView',
  methods:{
    showData(){
    console.log(this.$route.query);
    console.log(this.$route.params);
    }
  }

}
</script>
